﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TopNew.aspx.cs" Inherits="CRM.Web.TopNew" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/toppage.css" %>" rel="stylesheet" type="text/css" />    
    <style type="text/css">        
        img { behavior: url(<%= base.ResourcesPath %>js/iepngfix/iepngfix.htc) }
    </style>
    <script src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js" type="text/javascript"  ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/Common.js"  ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>js/iepngfix/iepngfix_tilebg.js"  defer="defer" ></script> 
    <script type="text/javascript"  >
        $(document).ready(function() {
            $(this).bind("mouseup", function() {
                $(this).scrollTop(0);
            });
            $('#logo').bind('click', function() {
                var frame = parent.window.frames['frameSoftPhone'];
                if (frame == null) {
                    return '';
                }
                try {
                    frame.SoftPhoneObject.ATReset();
                }
                catch (ex) {

                }

            });
            $('.guided').hover(function() {
                $(this).removeClass("guidedPng");
                $(this).addClass("guidedSelected");
            },
                function() {
                    $(this).removeClass("guidedSelected");
                    $(this).addClass("guidedPng");

                });
        });
    </script>
    <script type="text/javascript"  defer="defer" >
        function clithis(i) {
            if (document.readyState != "complete") return;
            switch (i) {
                case 1:
                    {
                        history.go(-1);
                    } 
                    break;
                case 2:
                    {
                        history.go(1); 
                    } 
                    break;
                case 3:
                    {
                        parent.frameMain.location = 'MainNew.aspx';
                    } 
                    break;
                case 4:
                    {
                        SHwin();
                    } 
                    break;
                case 5:
                    {
                        //知识库
                        //parent.frameMain.location = '';
                    } 
                    break;
                case 6:
                    {
                        //业务管理
                        parent.frameMain.location = 'ReportManage/ReportTemplate.aspx';
                    }
                    break;
                case 7:
                    {
                        //消息
                        window.open('Message/MessageSend.aspx', '消息', 'height=270,width=356');
                    } 
                    break;
                case 8:
                    {
                        //通讯录
                        //parent.frameMain.location = '';
                    } 
                    break;
                case 10:
                    {
                        parent.frameMain.location.reload();
                    }
                    break;
                case 11:
                    {
//                        if (getSoftPhonePageObject() != null) {
//                            if (getSoftPhonePageObject().ATLogout()) {
//                                parent.frameMain.location = 'Logout.aspx';
//                            }
//                            else {
//                                alert('通话中请稍后退出！');
//                            }
//                        }
//                        else {
                            parent.frameMain.location = 'Logout.aspx';    
//                        }
                    }
                    break;
                case 12:
                    {
                        //关于
                        window.open('about.aspx', '关于', 'height=245,width=387');
                    } 
                    break;
                case 13:
                    {
                        //window.open('Message/MessageShow.aspx', '查看消息', 'height=270,width=356');
                    }
                    break;
                default:
                    {
                    }
                    break;

            }
        }
        function SHwin() {
            if (document.readyState != "complete") return;
            var leftbar = parent.Sbar.cols.split(",")[0] * 1;
            if (leftbar < 1) {
                parent.Sbar.cols = "190, 5, *";
            }
            else {
                parent.Sbar.cols = "0, 0, *";
            }
        }
        function MO(e) {
            $(e).removeClass("P");
            $(e).addClass("T");
        }
        function MU(e) {
            $(e).removeClass("T");
            $(e).addClass("P");
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="top_bg">
        <table cellpadding="0" border="0" cellspacing="0" id="tTopBody" >
            <tr>
                <td class="tdLogo">
                </td>
                <td class="tdGuided">
                    <a class="guided guidedPng" onclick="clithis(1)" href="#">后退</a>
                    <a class="guided guidedPng" onclick="clithis(2)" href="#">前进</a>
                    <a class="guided guidedPng" onclick="clithis(3)" href="#">首页</a>
                    <a class="guided guidedPng" onclick="clithis(4)" href="#">目录</a>
                    <a class="guided guidedPng" onclick="clithis(5)" href="#">FAQ</a>
                    <a class="guided guidedPng" onclick="clithis(10)" href="#">刷新</a>
                    <a class="guided guidedPng" onclick="clithis(11)" href="#">退出</a>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
